import { SET_DATA_LIST } from './actionsType'
const initState = {
	dataList: []
}


const reducer = (state = initState, action) => {
	const { type, payload } = action
	switch(type) {
		case SET_DATA_LIST: 
			return {
				...state,
				dataList: payload
			};
		default: 
			return state
	}
}

export default reducer